<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:f="http://java.sun.com/jsf/core"
   xmlns:a4j="http://richfaces.org/a4j"
   xmlns:rich="http://richfaces.org/rich">

   		<ui:composition template="../../templates/templateJsf.xhtml">
						
			<ui:define name="pageTitle">Inserisci Utente</ui:define>
  
			<ui:define name="pageHeader">Inserisci Utente</ui:define>

			
			
			<ui:define name="pageHeader">
						<ui:include src="/areaPrivata/adminMenu.xhtml" />
				
				
			</ui:define>
			
			<ui:define name="leftBody">
				<ui:include src="../richMenu.xhtml" />
			</ui:define>
			
			<ui:define name="centerBody">
			
			
				
				<h:form id="insertFormUtente">
				 	<rich:panel header="Inserisci Utente"  style=" height : 500px;" >
				 		
				 		<h:panelGrid columns="2"  border="0" style=" width : 700px;"> 
						<h:outputLabel  value="Nome:"  />
        				<h:inputText id="Nome" value="#{handlerUtente.utente.nome}" style=" width : 250px;"/>
        				
            		 	<h:outputLabel  value="Cognome:" />
        				<h:inputText id="Cognome" value="#{handlerUtente.utente.cognome}" style=" width : 250px;"/>
        				
            		 	<h:outputLabel  value="CodiceFiscale" />
        				<h:inputText id="CodiceFiscale" value="#{handlerUtente.utente.codiceFiscale}" style=" width : 250px;"/>
        				
            		 	<h:outputLabel  value="Mail" />
        				<h:inputText id="Mail" value="#{handlerUtente.utente.email}" style=" width : 250px;"/>
						
            		 	<h:outputLabel  value="Password" />
        				<h:inputText id="Password" value="#{handlerUtente.utente.password}" style=" width : 250px;"/>
        				
        				  
        				<h:outputLabel  value="Ruolo" />
        				<h:selectOneListbox  value="#{handlerUtente.nomeRuoloScelto}" size="#{handlerUtente.ruoliSulDb.size()}"  style=" width : 120px;">
        					<f:selectItems  value="#{handlerUtente.ruoliSulDb}" />
        				</h:selectOneListbox>
        				<br/><br/>
        				
        				</h:panelGrid> 
  					</rich:panel>
 						
        				<h:commandButton id="Modifica" value="Modifica" action="#{handlerUtente.updateUtente()}" /><br/>
            	</h:form>
				
				
     
				
			</ui:define>
		</ui:composition>
</html>
